package io.framework.modules.sys.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.framework.common.validator.group.AddGroup;
import io.framework.common.validator.group.DefaultGroup;
import io.framework.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 收藏夹
 *
 *
 * @since 1.0.0
 */
@Data
@ApiModel(value = "收藏夹")
public class FavoritesDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	@Null(message="{id.null}", groups = AddGroup.class)
	@NotNull(message="{id.require}", groups = UpdateGroup.class)
	private Long id;

	@ApiModelProperty(value = "用户ID")
	@NotNull(message="{favorites.userId.require}", groups = DefaultGroup.class)
	private Long userId;

	@ApiModelProperty(value = "污染源企业ID")
	@NotNull(message="{favorites.wryId.require}", groups = DefaultGroup.class)
	private String wryId;

	@ApiModelProperty(value = "污染源企业名称", required = true)
	@NotBlank(message="{favorites.wryName.require}", groups = DefaultGroup.class)
	private String wryName;

	@ApiModelProperty(value = "类型", required = true)
	@NotBlank(message="{favorites.type.require}", groups = DefaultGroup.class)
	private String type;

}